<template>
  <div>
header
<button @click="serch">点击搜索</button>
  </div>
</template>

<script>
export default {
  data () {
    return {

    }
  },

  created () {

  },

  methods: {
serch() {
    console.log('搜索')
    this.$router.push('/login')
}
  }
}
</script>

<style scoped lang='scss'>
button{
    width: 100px;
}
div{
    width: 100%;
    height: 80px;
    background-color: burlywood;
}
</style>
